package org.jackysoft.entity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.jackysoft.util.MySqlSchema;

@Entity@Table(schema=MySqlSchema.Businessbase)
public class SystemServiceSetting extends AbstractNoIdEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8144443900968178944L;

	
	private String workflowName;
	
	private Integer actionId;

	private SystemService sysService;

	
	
	
	
	public SystemServiceSetting() {
		super();
		// TODO Auto-generated constructor stub
	}

	
	
	public SystemServiceSetting(String workflowName, Integer actionId,
			SystemService sysService) {
		super();
		this.workflowName = workflowName;
		this.actionId = actionId;
		this.sysService = sysService;
	}



	@Id
	public Integer getActionId() {
		return actionId;
	}

	public void setActionId(Integer actionId) {
		this.actionId = actionId;
	}

	
	@ManyToOne
	public SystemService getSysService() {
		return sysService;
	}

	public void setSysService(SystemService sysService) {
		this.sysService = sysService;
	}

	@Id
	public String getWorkflowName() {
		return workflowName;
	}

	public void setWorkflowName(String workflowName) {
		this.workflowName = workflowName;
	}

	
	



}
